import request from '@/utils/request';

export default {
  //根据邮箱发送验证码
  sendEmailCode(sendTo) {
    return request({
      url: `/educenter/email/${sendTo}`,
      method: 'post'
    })
  },
  //用户注册
  register(formItem) {
    return request({
      url: `/educenter/member/register`,
      method: 'post',
      data: formItem
    })
  },
  //用户登录
  login(formItem) {
    return request({
      url: `/eduucenter/member/login`,
      method: 'post',
      data: formItem
    })
  }
}